import { IUpdateGroupInfoParams } from "@/types/group";
import request from "@/utils/request.ts";

export const GetJoinGroup = () => {
  return request.get("/getJoinGroup");
};

export const CreateGroup = (params: number[]) => {
  return request.post("/createGroup", params);
};

export const GetGroupDetail = (groupId: number) => {
  return request.get("/detailGroup/" + groupId);
};

export const GetGroupMemberList = (groupId: number) => {
  return request.get("/groupMemberList/" + groupId);
};

export const UpdateGroupInfo = (params: IUpdateGroupInfoParams) => {
  return request.post("/updateGroupInfo", params);
};
